-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for vector in DataValueExt::int() #6844
Conversation
Wonder if it would be a good idea to create a test from the |
Just saw that the test already exists: wasmtime/cranelift/filetests/filetests/runtests/simd-ineg.clif Lines 30 to 35 in 30d086f
So I've enabled it for the interpreter. |
and also improve comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hey,
This looks great! Thanks for fixing this!
DataValueExt::int() doesn't currently seem to have any tests. Please let me know if I should add any tests for this PR or for DataValueExt::int() in general.
Yeah, we usually test the opcodes via clif tests instead of the internals, so enabling the ineg
tests is great!
Thanks @afonso360 In order to test with an 8 byte vector input to
While the interpreter worked fine, it was the compiler that crashed. Is this expected? |
Well, sort of. Ideally we would be able to compile all clif code, but 64 bit SIMD support is very incomplete both in the backends and in the interpreter itself. The only architectures that support it are AArch64 and RISC-V (And neither of those fully support it!). I think X86_64 has never supported it, so yeah I would expect it to crash there. |
Okay, makes sense. Thanks 👍 |
* Add support for vector in DataValueExt::int() Fixes bytecodealliance#6827 * Replace `if` with `match` * Enable interpreter test for simd ineg Issue bytecodealliance#6827 * Format code with `cargo fmt` and also improve comment
…time into feature/wasi-nn-preview-2 * 'feature/wasi-nn-preview-2' of github.com:geekbeast/wasmtime: Memcheck for Wasm guests in Wasmtime (bytecodealliance#6820) CI: upgrade to qemu 8.0.4. (bytecodealliance#6849) Sync wasi-cli with wit definitions in standards repo (bytecodealliance#6806) Rename `preview2::preview2` to `preview2::host` (bytecodealliance#6847) winch: Simplify the MacroAssembler and Assembler interfaces (bytecodealliance#6841) There are no files in `preview1` other than `mod.rs` (bytecodealliance#6845) Update stdio on Unix to fall back to worker threads (bytecodealliance#6833) Update RELEASES.md (bytecodealliance#6838) Minor documentation updates to docs/WASI-tutorial.md (bytecodealliance#6839) Add support for vector in DataValueExt::int() (bytecodealliance#6844)
Fixes #6827